
def bubbleSort(l):
	try:
		if not l:
			return []
		for i in range(len(l)-1):
			for j in range(len(l)-i-1):
				if l[j] > l[j+1]:
					l[j], l[j+1] = l[j+1], l[j]
		return l
	except Exception as e:
		raise
		return []
	

l = [67, 123, 34, 5, 65, 9, 11, 76]

print(bubbleSort(l))